{% extends "_layouts/default.html" %}
{% block content %}

<script type="text/javascript">
    $().ready(function(){

        $("#editForm").validate({
            rules:{
                username: {required:true}
            }
        });
    });
</script>
<div class="tabs_title clearfix">
  <h3>管理员管理</h3>

<ul>
<li class="current"><a href="/admin/admin"><span>管理员列表</span></a></li>
<li><a href="/admin/admin/edit"><span>添加</span></a></li>
</ul>


</div>
<div class="block tips">
    <h3>添加/修改管理员</h3>
    <form id="editForm"  class="adminform" action="" method="post" enctype="multipart/form-data">
        <input type="hidden" name="admin_id" value="{{admin.admin_id}}" />

        <table width="100%" border="0" cellpadding="0" cellspacing="0" class="maintable">
            <tr>
                <td align="right" width="20%">名称:</td>
                <td><label>
                        <input type="text" name="username" id="username" class="txt" value="{{admin.username}}" />
                </label></td>
            </tr>            <tr>
                <td align="right"  width="20%">密码:</td>
                <td><label>
                        <input type="text" name="password" id="password" class="txt small" value="" />
                </label></td>
            </tr>

        
            <tr >
                <td>&nbsp;</td>
                <td><input type="submit" name="userssubmit" value=" 提交 " class="btn" />&nbsp;&nbsp;<input type="button" value=" 返回 " onclick="history.go(-1);" class="btn" /></td>
            </tr>
        </table>

    </form>
</div>  
{% endblock %}